<?php
	Class Default_ProductController extends My_Controller_Action{
		public function init() { 
	        $template_path = TEMPLATE_PATH . "/public";
	        $this->loadTemplate($template_path, 'template.ini', 'product');
			$this->_model = new Default_Model_Product();
	
	    }
	    public function indexAction(){
	    	
	    }
	    public function detailAction(){
	    	
	    	$ProductId = $this->_request->getParam('ProductId'); 
	    	if($ProductId){
	    		$DetailProduct = $this->_model->getInfo($ProductId);
	    	}
	    	else{
	    		$this->_redirect(APPLICATION_URL);	
	    	}
	    	
	    	$this->view->detailproduct = $DetailProduct;
	    }
	}

?>